package com.learn.demo.service.impl;

import com.learn.demo.service.ModifyService;
import com.learn.demo.service.QueryService;
import com.learn.springframework.annotation.Autowired;
import com.learn.springframework.annotation.Service;

/**
 * @author MI
 */
@Service
public class ModifyServiceImpl implements ModifyService {
    /**
     * 循环依赖复现
     */
    @Autowired
    private QueryService queryService;

    @Override
    public String add(String name, String addr) {
        return "ModifyService add,name:" + name + " addr=:" + addr;
    }

    @Override
    public String remove(Integer id) {
        return "ModifyService id=:" + id;
    }

    @Override
    public String edit(Integer id, String name) {
        return "ModifyService edit,id=" + id + ",name=" + name;
    }
}
